import { useSelector } from 'react-redux'
import { StateType } from '../store'
import { pageInfoType } from '../store/pageInfoReducer'
function useGetPageInfo() {
  const pageInfo = useSelector<StateType>(state => state.pageInfo) as pageInfoType

  return pageInfo
}

export default useGetPageInfo
